Page({
  data: {
    wordslistData : [{
      name: 'A',
      color: 'red'
    },{
      name: 'B',
      color: 'yellow'
    }, {
      name: 'C',
      color: 'pink'
    }, {
      name: 'D',
      color: 'brown'
    }, {
      name: 'E',
      color: '#79CDCD'
    }, {
      name: 'F',
      color: '#DEB887'
    }, {
      name: 'G',
      color: '#CDAD00'
    }, {
      name: 'H',
      color: '#D15FEE'
    }, {
      name: 'I',
      color: '#B5B5B5'
    }, {
      name: 'J',
      color: '#C6E2FF'
    }, {
      name: 'K',
      color: '#C1FFC1'
    }, {
      name: 'L',
      color: '#B4EEB4'
    }, {
      name: 'M',
      color: '#E9967A'
    }, {
      name: 'N',
      color: '#DDA0DD'
    }, {
      name: 'O',
      color: '#DB7093'
    }, {
      name: 'P',
      color: '#D8BFD8'
    }, {
      name: 'Q',
      color: '#D2B48C'
    }, {
      name: 'R',
      color: '#CDCD00'
    }, {
      name: 'S',
      color: '#CD9B9B'
    }, {
      name: 'T',
      color: '#CD6839'
    }, {
      name: 'U',
      color: '#668B8B'
    }, {
      name: 'V',
      color: '#CD5B45'
    }, {
      name: 'W',
      color: '#CD5555'
    }, {
      name: 'X',
      color: '#CD4F39'
    }, {
      name: 'Y',
      color: '#CD8162'
    }, {
      name: 'Z',
      color: '#C67171'
    }],
    img: '../../static/image/dancifengmian.jpg'
  },

  onLoad: function () {
  },

  onShow: function () {

  },

  clickWord(e) {
    const { item } = e.currentTarget.dataset;
    wx.navigateTo({
      url: './danciDetail/danciDetail?prefix=' + item,
    });
  }
})